home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Extensions… / Extension Shell multi-seg ƒ / Extension multi-seg.make < prev    next >
Encoding:
Text File  |  1996-06-14  |  2.0 KB  |  65 lines  |  [TEXT/MPS ]

  1. #    File:        Extension multi-seg.make
  2. #   Target:     Extension
  3. #   Sources:    Extension.a Extension.c Extension.r
  4. #   Created:    Wednesday, Nov. 11, 1992 6:42:32 PM
  5. #
  6. #    Makefile for a printing extension.
  7. #    
  8. #    Dave Hersey
  9. #    Apple Developer Technical Support
  10. #
  11. #    12/01/92 - dmh - Created.
  12. #     4/26/93 - dmh - Updated to use recommended approach to
  13. #                     global data initialization.
  14. #     9/05/93 - dmh - Updated for b2.
  15. #   12/18/93 - dmh - Updated for b3.
  16. #     6/10/94 - dmh - Added GXPRINTINGDISPATCH examples.
  17. #    8/24/94 - dmh - Finalized.
  18. #     6/14/96 - cn  - Updated to support MPW Pro #19.
  19.  
  20. #    Alias to the path for the GX library and interface files.
  21.  
  22. INTPATH = "{CIncludes}"
  23.  
  24. #    Creator type we'll use:
  25.  
  26. kCreator = 'GMUL'
  27.  
  28. OBJECTS_SEG1 = Extension.a.o Extension.c.o 
  29. OBJECTS_SEG2 = "Extension seg2.a.o" "Extension Seg2.c.o"
  30. AsmOptions        = -sym off -i {INTPATH} -case obj
  31. CompileOptions    = -opt full -d applec -b2 -r -i {INTPATH}
  32.  
  33. Extension.a.o ƒ "Extension multi-seg.make" Extension.a
  34.      Asm {AsmOptions} Extension.a
  35. Extension.c.o ƒ "Extension multi-seg.make" Extension.c
  36.      SC {CompileOptions} Extension.c
  37.  
  38. "Extension Seg2.a.o" ƒ "Extension multi-seg.make" "Extension Seg2.a"
  39.      Asm {AsmOptions} "Extension Seg2.a"
  40. "Extension Seg2.c.o" ƒ "Extension multi-seg.make" "Extension Seg2.c"
  41.      SC {CompileOptions} "Extension Seg2.c"
  42.  
  43. "Extension multi-seg" ƒƒ "Extension multi-seg.make" Extension.r {OBJECTS_SEG1}
  44.     Link    -ra =resSysHeap,resPurgeable    ∂
  45.             -t 'pext'                        ∂
  46.             -c {kCreator}                    ∂
  47.             -rt pext=0                        ∂
  48.             -sg SEGS                        ∂
  49.             -m EntryPoint                    ∂
  50.             {OBJECTS_SEG1}                    ∂
  51.             "{Libraries}MacRuntime.o"            ∂
  52.             -o "Extension multi-seg";
  53.  
  54. "Extension multi-seg" ƒƒ "Extension multi-seg.make" Extension.r {OBJECTS_SEG2}
  55.     Link    -ra =resSysHeap,resPurgeable    ∂
  56.             -t 'pext'                        ∂
  57.             -c {kCreator}                    ∂
  58.             -rt pext=1                        ∂
  59.             -sg SEGS                        ∂
  60.             -m EntryPoint2                    ∂
  61.             {OBJECTS_SEG2}                    ∂
  62.             -o "Extension multi-seg";
  63.     SetFile "Extension multi-seg" -a iB;
  64.     Rez -i {INTPATH} -rd -o "Extension multi-seg" Extension.r -append 
  65.